<script setup>
import LoginVisualSection from "@/components/LoginVisualSection.vue";
import LoginFormSection from "@/components/LoginFormSection.vue";
</script>

<template>
  <div class="container-wrapper">
    <div class="main-card" style="margin-top: 10vh">
      <div class="row g-0">
        <!-- 左侧视觉区域 -->
        <LoginVisualSection/>
        <!-- 右侧表单区域 -->
        <LoginFormSection/>
      </div>
    </div>
  </div>
  <router-view :key="$route.fullPath" />
</template>

<style scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
</style>
<style>
:root {
  --primary: #FB7299!important;
  --secondary: #23ADE5!important;
  --dark: #18191C;
  --light: #F5F6F7;
  --light-bg: #f8f9ff;
  --rate-excellent: #36D399;
  --rate-good: #8B5CF6;
  --rate-fair: #FBBF24;
  --rate-poor: #EF4444;
  --card-radius: 24px;
  --input-height: 48px;
  --btn-height: 50px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.container-wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.main-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  background: white;
}

.main-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .visual-section {
    min-height: 300px;
    padding: 30px 20px;
  }

  .visual-title {
    font-size: 1.8rem;
  }

  .form-title {
    font-size: 1.8rem;
  }

  .password-rules ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-card {
    border-radius: 20px;
  }

  .visual-section {
    border-radius: 20px 20px 0 0;
  }

  .form-section {
    padding: 30px 20px;
  }

  .app-logo {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }
}
</style>
